package com.yidu.logisticssystem.controller;

import com.yidu.logisticssystem.entity.LogisticsModxpost;
import com.yidu.logisticssystem.service.LogisticsModxpostService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 模块职位关联表(LogisticsModxpost)表控制层
 *
 * @author 王锦程
 * @since 2021-03-12 15:07:53
 */
@RestController
@RequestMapping("logisticsModxpost")
public class LogisticsModxpostController {
    /**
     * 服务对象
     */
    @Resource
    private LogisticsModxpostService logisticsModxpostService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @ApiOperation("通过主键查询")
    @GetMapping("selectOne")
    public LogisticsModxpost selectOne(Integer id) {
        //调用queryById()方法查询
        return this.logisticsModxpostService.queryById(id);
    }

}
